import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

final class MouseClickListener implements ActionListener 
		{
			private String variable;
			
			public MouseClickListener(String param)
			{
				variable = param;
			}
			
			public void actionPerformed(ActionEvent e)
			{
				if (variable.equals("start"))
				{
					MazeGameUI.startMenu();
				}
				if (variable.equals("scores"))
				{
					MazeGameUI.scoreMenu();
				}
				if (variable.equals("options"))
				{
					MazeGameUI.options();
				}
				if (variable.equals("exit"))
				{
					MazeGameUI.close();
				}
				if (variable.equals("smallMaze"))
				{
					MazeGameUI.smallMaze();
				}
				if (variable.equals("mediumMaze"))
				{
					MazeGameUI.mediumMaze();
				}
				if (variable.equals("largeMaze"))
				{
					MazeGameUI.largeMaze();
				}
				if (variable.equals("introMenu"))
				{
					MazeGameUI.introMenu();
				}
				if (variable.equals("resetScores"))
				{
					MazeGameUI.resetScores();
				}
			}
		}
